﻿<%@ Page Title="Photo Upload" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Photo-Upload.aspx.cs" Inherits="Employee_Photo_Upload" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyContentTop" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="bodyContent" Runat="Server">
<div id="contentBody">
        <div class="section">
            <div class="seperator">
            </div>
            <fieldset class="formouter">
                <table cellpadding="3" cellspacing="3" width="100%">
                    <tr>
                        <td colspan="2">
                            <div class="row_curved" id="divStudentID" runat="server">
                                <label for="<%=lblEmployeeProfileKey.ClientID%>" class="mand_red">
                                    <asp:Label runat="server" Text="Employee ID" ID="lblStudentIDCaption" /></label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label Visible="false" runat="server" Text="-1" ID="lblUserAccountKey" />
                                        <asp:Label Visible="true" runat="server" Text="-1" ID="lblEmployeeProfileKey" />
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row_curved" id="div1" runat="server" title="Example:UCSM, MIT, YTU">
                                <label for="<%=lblFullNameCaption.ClientID%>" class="mand_red">
                                    <asp:Label runat="server" Text="Full Name" ID="lblFullNameCaption" /></label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label runat="server" ID="lblFullName" />
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row_curved" id="div6" runat="server">
                                <label for="<%=lblCurrentDesignation.ClientID%>" class="mand_red">
                                    <asp:Label runat="server" Text="Current Designation" ID="lblCurrentDesignationCaption" /></label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label runat="server" ID="lblCurrentDesignation" />
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row_curved" id="divCurrentEmployeePhoto" runat="server">
                                <label for="<%=imgCurrentEmployeePhoto.ClientID%>" class="mand_red">
                                    <asp:Label runat="server" Text="Current Photo" ID="lblCurrentEmployeePhoto" />
                                </label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:HyperLink ID="hplCurrentEmployeePhoto" Target="_blank" runat="server" ToolTip="Click to View Original">
                                            <asp:Image runat="server" ID="imgCurrentEmployeePhoto" />
                                        </asp:HyperLink>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row_curved" id="divSchoolLogo" runat="server">
                                <label for="<%=fupPhoto.ClientID%>" class="mand_red">
                                    <asp:Label runat="server" Text="New Photo" ID="lblStudentPhoto" />
                                </label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:FileUpload ID="fupPhoto" runat="server" />
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row_curved" style="background-color: #efefef;" id="divButton" runat="server">
                                <label>
                                    &nbsp;</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Button ID="btnSubmit" CssClass="button_normal_submit" Text="Save" ValidationGroup="StudentPhoto"
                                            OnClientClick="SubmitOnClientClick(this, 'SchoolProfile');" runat="server" OnClick="btnSubmit_Click" />
                                        &nbsp;&nbsp;<asp:Button ID="btnViewEmployeeProfile" CssClass="button_normal_submit"
                                            Text="View Profile" CausesValidation="false" runat="server" OnClick="btnViewEmployeeProfile_Click" /></span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row_curved" id="divMessage" runat="server">
                                <label>
                                    &nbsp;</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblMessage" runat="server"></asp:Label>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </div>
    </div>

    <script type="text/javascript">
        //<![CDATA[
        SetSumitNormalButtonAttribute(document.getElementById('<%=btnSubmit.ClientID%>'));
        //]]>
    </script>
</asp:Content>

